﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CH.TestData.Common;
namespace CH.TestData.Provider
{
    [DataTypeName("手机号码")]
    public class PhoneProvider : IDataProvider
    {

        List<string> prefix = new List<string>() 
            {
                "139", 
                "138",
                "137", 
                "136",
                "135", 
                "134",
                "188", 
                "187",
                "183", 
                "159",
                "158", 
                "157",
                "150", 
                "147"
            };

        public void CreateOption(FlowLayoutPanel flp)
        {

        }

        public void SetDataSource(FlowLayoutPanel flp)
        {

        }
        public string GetNextValue()
        {
            Random r = new Random();
            return "N'" + prefix[r.Next(0, prefix.Count - 1)] + RandomHelper.GetRandomNumber(8) + "'";
        }
    }
}
